#ifndef OBSERVEDOCUMENT_H_
#define OBSERVEDOCUMENT_H_
#include <QTextDocument>
#include <QTextDocumentFragment>
class DocumentManager;

class ObserveDocument : public QTextDocument{
Q_OBJECT


public:
	ObserveDocument(DocumentManager* parent = 0 );
	virtual ~ObserveDocument();
	
public slots:
	void updateText(int position, int charsRemoved ,const QTextDocumentFragment f);
	
private:
	DocumentManager* document_manager;
};

#endif /*OBSERVEDOCUMENT_H_*/
